﻿
using TotalApplication.Core;

namespace TotalApplication.AngelSix
{
    /// <summary>
    /// Locates view models from the Ioc for use in binding Xaml files
    /// </summary>
    public class ViewModelLocator
    {
        /// <summary>
        /// Singletan instance of the locater
        /// </summary>
        public static ViewModelLocator Instance { get;private set; } = new ViewModelLocator();

        /// <summary>
        /// The application view model
        /// </summary>
        public static ApplicationViewModel ApplicationViewModel => IoC.Application;

        /// <summary>
        /// The setting menu view model
        /// </summary>
        public static SettingMenuViewModel SettingMenuViewModel => IoC.SettingMenu;
    }
}
